package com.sos.entity.po;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.UUID;

/**
 * @author 港某人
 * @date 2021/3/7 14:12
 */
@NoArgsConstructor
@Data
public class User {

    private String objId;
    private String account;
    private String name;
    private String sex;
    private int age;
    private String birthday;
    private String phone;
    private String address;

    public User(Account account) {
        this.objId = UUID.randomUUID().toString();
        this.account = account.getAccount();
        this.name = account.getName();
        this.phone = account.getPhone();
    }


}
